package com.cqut.forum.util;

import java.sql.Types;

import org.hibernate.Hibernate;

/**
 * 修复hibernate默认字段长度（过长）和原生态长度不一直问题
 * @author yangxun
 */
public class MySQL5Dialect extends org.hibernate.dialect.MySQL5Dialect  {
	public MySQL5Dialect() {
	   super();
	   registerHibernateType(Types.LONGVARCHAR, Hibernate.TEXT.getName());
	   //registerHibernateType(Types.LONGVARBINARY, Hibernate.BLOB.getName());
	}
}
